<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,height=device-width initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>问卷详情</title>
		<link rel="stylesheet" href="../../page/shuguang/css/personalContent.css" />
	</head>
	<body>
		
		<div class="wrap">
			<div class="titleWrap">
				<span><a href="../shuguang/redirectToPersonal.do"><img src="../../page/shuguang/img/back-icon-.png" height="24"/></a></span>
				<p>问卷详情</p>
			</div>
			
			<div class="content">
				<div class="contentTitle">
					<p>$!{map.questionName}</p>
					<p>$!{map.time}</p>
				</div>
				
				<ul class="contentList">
					<li>
						<div>
							<div class="clear">
								<p>1、性别？</p>
								<p>答案：<span class="answer"></span></p>
							</div>
						</div>
					</li>
					<li>
						<div>
							<div class="clear">
								<p>2、姓名？</p>
								<p>答案：<span class="answer"></span></p>
							</div>
						</div>
					</li>
					<li>
						<div>
							<div class="clear">
								<p>3、手机号？</p>
								<p>答案：<span class="answer" ></span></p>
							</div>
						</div>
					</li>
					<li>
						<div>
							<div class="clear">
								<p>4、身份证号？</p>
								<p>答案：<span class="answer"></span></p>
							</div>
						</div>
					</li>
					<li>
						<div>
							<div class="clear">
								<p>5、社保号？</p>
								<p>答案：<span class="answer" ></span></p>
							</div>
						</div>
					</li>
					<li>
						<div>
							<div class="clear">
								<p>6、身高？</p>
								<p>答案：<span class="answer" ></span></p>
							</div>
						</div>
					</li>
					<li>
					<div>
						<div class="clear">
							<p>7、体重？</p>
							<p>答案：<span class="answer" ></span></p>
						</div>
					</div>
				</li>
					<li>
						<div>
							<div class="clear">
								<p>8、饮食盐含量？</p>
								<p>答案：<span class="answer" ></span></p>
							</div>
						</div>
					</li>
					<li>
						<div>
							<div class="clear">
								<p>9、饮食脂含量？</p>
								<p>答案：<span class="answer" ></span></p>
							</div>
						</div>
					</li>
					<li>
						<div>
							<div class="clear">
								<p>10、一周运动情况？</p>
								<p>答案：<span class="answer" ></span></p>
							</div>
						</div>
					</li>
					<li>
						<div>
							<div class="clear">
								<p>11、吸烟史？</p>
								<p>答案：<span class="answer"></span></p>
							</div>
						</div>
					</li>
					<li>
						<div>
							<div class="clear">
								<p>12、饮酒史？</p>
								<p>答案：<span class="answer"></span></p>
							</div>
						</div>
					</li>
					<li>
						<div>
							<div class="clear">
								<p>13、父母有无糖尿病？</p>
								<p>答案：<span class="answer" ></span></p>
							</div>
						</div>
					</li>

					<li>
					<div>
						<div class="clear">
							<p>14、家族史？</p>
							<p>答案：<span class="answer"></span></p>
						</div>
					</div>
				</li>

					<li>
						<div>
							<div class="clear">
								<p>15、是否有高血压？</p>
								<p>答案：<span class="answer" ></span></p>
							</div>
						</div>
					</li>
					<li>
					<li>
						<div>
							<div class="clear">
								<p>16、高血压常用药？</p>
								<p>答案：<span class="answer" ></span></p>
							</div>
						</div>
					</li>
					<li>
						<div>
							<div class="clear">
								<p>17、是否有糖尿病？</p>
								<p>答案：<span class="answer"></span></p>
							</div>
						</div>
					</li>
					<li>
						<div>
							<div class="clear">
								<p>18、糖尿病常用药？</p>
								<p>答案：<span class="answer" ></span></p>
							</div>
						</div>
					</li>

					
				</ul>
				<!--<div class="advise">
					<h4>医生建议：</h4>
					<p>多饮水，经常运动。</p>
				</div>-->
				
			</div>
			
			
		</div>

		<script src="../../page/shuguang/js/jquery.min.js"></script>
		<script src="../../page/shuguang/js/page.js"></script>
		<script>
			var resultList='$!{map.resultList}';
//			console.log(resultList);
			var m=resultList.substring(1,resultList.length-1);
			var s=m.split(',');
//			console.log(s);
			var len = $(".answer").length;
//			console.log(len);
			for (var i=0; i<len;i++){
				$(".answer").eq(i).html(s[i])
			};

			function ellipsis() {
				var text = document.getElementsByClassName('txt');
				for(var i = 0; i<text.length;i++){
					str = text[i].innerHTML,
							textLeng = 7;
					if(str.length > textLeng ){
						text[i] .innerHTML = str.substring(0,textLeng )+"...";
					}
				}
			}

		</script>

	</body>
</html>
